package operation;

import book.Book;
import book.BookList;

//打印图书
public class ShowBook implements IOperation{
    @Override
    public void work(BookList books) {
        System.out.println("显示图书————");
        int currentSize= books.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book book=books.getBook(i);
            System.out.println(book);
            }
        }
}
